import axios from 'axios'

const instance = axios.create({
  baseURL: `http://${process.env.HOST || 'localhost'}:${process.env.PORT ||
    3000}`,
  timeout: 2000,
  headers: {
    'access-token':
      'eyJhbGciOiJIUzUxMiJ9.eyJleHAiOjE1NjIxMzUwOTMsInVzZXJuYW1lIjoiMTcyLjE4LjIwNy4xNzQifQ.YoykM_nTuC3svv6IPssAXjWYUYv1DAmRajlvmPMeeZuBvJ8R21dBeW-q5qgWwhcsm0xwsOtHRh3q00wHM6a2_g'
  }
})

export default instance
